<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<IEnumerable<HyperLocal.Core.LocalOrbUser>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Index
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        Index</h2>
    <div style="overflow: auto">
        <table>
            <tr>
                <th>
                    Control Options
                </th>
                <th>
                    IsAdmin
                </th>
                <th>
                    LocalOrbUserId
                </th>
                <th>
                    UserName
                </th>
                <th>
                    Password
                </th>
                <th>
                    Email
                </th>
                <th>
                    Active
                </th>
                <th>
                    Deleted
                </th>
                <th>
                    DateCreated
                </th>
                <th>
                    DateModified
                </th>
                <th>
                    DateDeleted
                </th>
                <th>
                    IsApproved
                </th>
                <th>
                    SecurityQuestion
                </th>
                <th>
                    SecurityAnswer
                </th>
                <th>
                    LocalOrbCommunityId
                </th>
                <th>
                    PasswordQuestion
                </th>
                <th>
                    Comment
                </th>
                <th>
                    IsLockedOut
                </th>
                <th>
                    LastLockoutDate
                </th>
                <th>
                    CreationDate
                </th>
                <th>
                    LastLoginDate
                </th>
                <th>
                    LastActivityDate
                </th>
                <th>
                    LastPasswordChangedDate
                </th>
                <th>
                    IsOnline
                </th>
                <th>
                    ProviderName
                </th>
            </tr>
            <% foreach (var item in Model)
               { %>
            <tr>
                <td>
                    <%= Html.ActionLink("Edit", "Edit", new { id=item.LocalOrbUserId }) %>
                    |
                    <%= Html.ActionLink("Details", "Details", new { id=item.LocalOrbUserId })%>
                </td>
                <td>
                    <%= Html.Encode(item.IsAdmin) %>
                </td>
                <td>
                    <%= Html.Encode(item.LocalOrbUserId) %>
                </td>
                <td>
                    <%= Html.Encode(item.UserName) %>
                </td>
                <td>
                    <%= Html.Encode(item.Password) %>
                </td>
                <td>
                    <%= Html.Encode(item.Email) %>
                </td>
                <td>
                    <%= Html.Encode(item.Active) %>
                </td>
                <td>
                    <%= Html.Encode(item.Deleted) %>
                </td>
                <td>
                    <%= Html.Encode(String.Format("{0:g}", item.DateCreated)) %>
                </td>
                <td>
                    <%= Html.Encode(String.Format("{0:g}", item.DateModified)) %>
                </td>
                <td>
                    <%= Html.Encode(String.Format("{0:g}", item.DateDeleted)) %>
                </td>
                <td>
                    <%= Html.Encode(item.IsApproved) %>
                </td>
                <td>
                    <%= Html.Encode(item.SecurityQuestion) %>
                </td>
                <td>
                    <%= Html.Encode(item.SecurityAnswer) %>
                </td>
                <td>
                    <%= Html.Encode(item.LocalOrbCommunityId) %>
                </td>
                <td>
                    <%= Html.Encode(item.PasswordQuestion) %>
                </td>
                <td>
                    <%= Html.Encode(item.Comment) %>
                </td>
                <td>
                    <%= Html.Encode(item.IsLockedOut) %>
                </td>
                <td>
                    <%= Html.Encode(String.Format("{0:g}", item.LastLockoutDate)) %>
                </td>
                <td>
                    <%= Html.Encode(String.Format("{0:g}", item.CreationDate)) %>
                </td>
                <td>
                    <%= Html.Encode(String.Format("{0:g}", item.LastLoginDate)) %>
                </td>
                <td>
                    <%= Html.Encode(String.Format("{0:g}", item.LastActivityDate)) %>
                </td>
                <td>
                    <%= Html.Encode(String.Format("{0:g}", item.LastPasswordChangedDate)) %>
                </td>
                <td>
                    <%= Html.Encode(item.ProviderName) %>
                </td>
            </tr>
            <% } %>
        </table>
    </div>
    <p>
        <%= Html.ActionLink("Create New", "Create") %>
    </p>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="StyleInjection" runat="server">
</asp:Content>
